﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ThaiHoa.Win.QLSX.Entity
{
    /// <summary>
    /// Lớp Tôn
    /// </summary>
    [DisplayName("Tôn")]
    public class Ton : VatTu
    {
        /// <summary>
        /// Mác Tôn
        /// </summary>
        [DisplayName("Mác Tôn")]
        [Required]
        public MacVatTu MacTon { set; get; }

        /// <summary>
        /// Quy cách tôn
        /// </summary>
        [StringLength(30)]
        [DisplayName("Quy Cách Tôn")]
        public string QuyCachTon { set; get; }

        /// <summary>
        /// Khổ tôn
        /// </summary>
        [Range(0,double.MaxValue)]
        [DisplayName("Khổ Tôn")]
        public double KhoTon { set; get; }

    }
}
